package com.panda.mall.common.mallUser.entity;

import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.panda.mall.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* 商品收藏表
* mall_user_collection_spu
*/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_user_collection_spu")
public class MallUserCollectionSpu extends BaseEntity implements Serializable {

    /**
    * 主键id
    */
    @NotNull(message="[主键id]不能为空")
    @ApiModelProperty("主键id")
    private Long id;
    /**
    * 用户id
    */
    @ApiModelProperty("用户id")
    private Long userId;
    /**
    * 商品id
    */
    @ApiModelProperty("商品id")
    private Long spuId;
    /**
    * 商品名称
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("商品名称")
    @Length(max= 255,message="编码长度不能超过255")
    private String spuName;
    /**
    * 商品图片
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("商品图片")
    @Length(max= 255,message="编码长度不能超过255")
    private String spuImg;

}
